<?php
declare(strict_types=1);

use Hyperf\HttpServer\Router\Router;


/**
* 账单相关
*/
Router::addGroup('/amount',function () {
    Router::post('/save','App\Controller\Amount\AmountLogController@saveAmountLog'); //保存流水记录
    Router::post('/edit','App\Controller\Amount\AmountLogController@editAmountLog'); //修改流水记录
    Router::post('/remove','App\Controller\Amount\AmountLogController@removeLogs'); //删除流水记录
    Router::post('/month-total','App\Controller\Amount\AmountLogController@getMonthTotal'); //按月统计收入支出
    Router::post('/data-logs','App\Controller\Amount\AmountLogController@amountLogs'); //流水统计
    Router::post('/data-info','App\Controller\Amount\AmountLogController@logInfo'); //流水详细
    Router::post('/group-category','App\Controller\Amount\GroupController@category'); //按类目分组统计
    Router::post('/group-account','App\Controller\Amount\GroupController@account'); //按账册分组统计
    Router::post('/group-type','App\Controller\Amount\GroupController@groupType'); //按入账出账分组统计
},[
    'middleware' => [
         App\Middleware\AuthenticateSSO::class
    ]
]);
